/**
 * 
 */
package leetCode;

/**
 * @author zhongfang
 *
 */
public class BulbSwitcher {
	public int bulbSwitch(int n) {
		return (int) Math.sqrt(n);
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		BulbSwitcher bulbSwitcher = new BulbSwitcher();
		for (int i = 1; i < 1000; i++) {
			System.out.println(i + " " + bulbSwitcher.bulbSwitch(i));
		}
	}

}
